package com.example.kingdee.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * access_token
 * </p>
 *
 * @author wyx
 * @since 2021-12-31
 */
@Data
public class AccessTokenDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    private int id;

    /**
     * 标志
     */
    private String mark;
    /**
     * access_token有效期【单位是秒】 2592000  30天
     */
    @JSONField(name = "expires_in")
    private Long expiresIn;
    /**
     * 访问令牌
     */
    @JSONField(name = "access_token")
    private String accessToken;
    /**
     * 固定值：all
     */
    private String scope;
    /**
     * 更新令牌
     */
    @JSONField(name = "refresh_token")
    private String refreshToken;
    /**
     * access_token 过期时间
     */
    private Date expirationTime;
}
